﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace MyAppProjectControl.Model
{
    public class FileDbModel : BindableBase
    {
        private int _id;

        public int id
        {
            get
            {
                return _id;
            }
            set
            {
                SetProperty(ref _id, value);
            }
        }

        private string _uuid = "";

        public string uuid
        {
            get
            {
                return _uuid;
            }
            set
            {
                SetProperty(ref _uuid, value);
            }
        }

        private string _deviceid = "";

        public string deviceid
        {
            get
            {
                return _deviceid;
            }
            set
            {
                SetProperty(ref _deviceid, value);
            }
        }


        private int _version_first;
        public int version_first
        {
            get
            {
                return _version_first;
            }
            set
            {
                SetProperty(ref _version_first, value);
            }
        }

        private int _version_second;

        public int version_second
        {
            get
            {
                return _version_second;
            }
            set
            {
                SetProperty(ref _version_second, value);
            }
        }

        private int _version_three;
        public int version_three
        {
            get
            {
                return _version_three;
            }
            set
            {
                SetProperty(ref _version_three, value);
            }
        }
        private int _version_four;

        public int version_four
        {
            get
            {
                return _version_four;
            }
            set
            {
                SetProperty(ref _version_four, value);
            }
        }

        private string _filepath = "";
        public string filepath
        {
            get
            {
                return _filepath;
            }
            set
            {
                SetProperty(ref _filepath, value);
            }
        }

        private string _filename = "";
        public string filename
        {
            get
            {
                return _filename;
            }
            set
            {
                SetProperty(ref _filename, value);
            }
        }

        public string DisplayName
        {
            get
            {
                return version_first.ToString()+"_"+ version_second.ToString() + "_" + version_three.ToString() + "_" + version_four.ToString();
            }         
        }
    }
}
